﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="HelloASPX.Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>用户管理</title>
    <link rel="stylesheet" href="./libs/particles/css/style.css" />
	<link rel="stylesheet" href="./css/base.css" />
	<link rel="stylesheet" href="./css/login.css" />
</head>
<body>
	<div id="particles-js"></div>
<form id="form1" runat="server">
	<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
	<div id="wrapper">
		<div>
			 <a  href="ProductList.aspx"><img src="./img/logo.png" style="width:300px;" /></a>
			<h2>用户管理</h2>
			<h3><asp:Label ID="userLogin" runat="server" Text="Label"></asp:Label></h3>
            用户名：<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="XmlDataSource1" DataTextField="username" DataValueField="username" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AppendDataBoundItems="True">
                <asp:ListItem>---请选择---</asp:ListItem>
            </asp:DropDownList><asp:Button ID="select" runat="server" Text="查询" OnClick="select_Click" />
		    <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/App_Data/user.xml" TransformFile="~/App_Data/user.xslt" XPath="/users/user"></asp:XmlDataSource>
        </div>
			<asp:Panel ID="Panel1" runat="server" Visible="False">
				<ul class="group_input">
					<li>
						<asp:Image ID="photo" runat="server" Height="50px" Width="50px" style="margin-left:130px; border:2px;"/>
					</li>
					<li>
						<asp:TextBox ID="username" runat="server" class="mobile required" placeholder="用户名" name="username" ReadOnly="true"></asp:TextBox>
					</li>
					<li>
                        <asp:FileUpload ID="FileUpImage" runat="server" />不修改默认不变
					</li>
					<li>
                        <asp:TextBox ID="txtEmail" runat="server" type="text" placeholder="邮箱" name="email" AutoPostBack="True" ></asp:TextBox>
					</li>
					<li>
						<div class="radio" style="width:274px;">
                            <asp:RadioButtonList ID="sexBList" runat="server">
                                <asp:ListItem>男</asp:ListItem>
                                <asp:ListItem>女</asp:ListItem>
                            </asp:RadioButtonList>
						</div>
					</li>
					<li>
                        <asp:TextBox ID="txtAge" runat="server"  type="number" placeholder="年龄" name="age" AutoPostBack="True"></asp:TextBox>
					</li>
					<li>
                        <asp:TextBox ID="txtcsrq" runat="server" placeholder="生日" name="birthdate" TextMode="Date" AutoPostBack="True"></asp:TextBox>
					</li>
					<li>
                        <asp:TextBox ID="txtTel" runat="server" type="text" placeholder="手机号(仅支持中国大陆)" class="mobile required" name="tel" AutoPostBack="True" ></asp:TextBox>
					</li>
					<li>
                        <asp:DropDownList ID="ddlQu" runat="server">
							<asp:ListItem>1.你的家乡是哪里？</asp:ListItem>
							<asp:ListItem>2.你的母校是哪里？</asp:ListItem>
							<asp:ListItem>3.你的老师叫什么名字？</asp:ListItem>
                        </asp:DropDownList>
					</li>
					<li>
                        <asp:TextBox ID="txtAnswer" runat="server" type="text" placeholder="答案" name="answer" OnTextChanged="txtAnswer_TextChanged"></asp:TextBox>
					</li>
				</ul>
				<asp:Button ID="delete" runat="server" Text="删除该用户" class="submit_btn deletebutton" OnClick="delete_Click"/>
                <asp:Button ID="Button1" runat="server" Text="点击修改" class="submit_btn" OnClick="Button1_Click1"/>
				<div class="states">
					<span class="right"><a href="UpdateUser.aspx">修改密码</a></span>
				</div>
            </asp:Panel>
		</div>
</form>
	<script src="./libs/jquery-1.12.4/jquery.min.js"></script>
	<script src="./libs/particles/particles.min.js"></script>
	<script src="./libs/particles/js/app.js"></script>
	<!-- <script src="../assets/libs/particles/js/lib/stats.js"></script> -->
	<script>
		var count_particles, stats, update;
		stats = new Stats;
		stats.setMode(0);
		stats.domElement.style.position = 'absolute';
		stats.domElement.style.left = '0px';
		stats.domElement.style.top = '0px';
		document.body.appendChild(stats.domElement);
		count_particles = document.querySelector('.js-count-particles');
		update = function () {
			stats.begin();
			stats.end();
			if (window.pJSDom[0].pJS.particles && window.pJSDom[0].pJS.particles.array) {
				count_particles.innerText = window.pJSDom[0].pJS.particles.array.length;
			}
			requestAnimationFrame(update);
		};
		requestAnimationFrame(update);
    </script>
</body>
</html>
